package com.ruoyi.resume.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.resume.mapper.BoleResumeHonorMapper;
import com.ruoyi.resume.domain.BoleResumeHonor;
import com.ruoyi.resume.service.IBoleResumeHonorService;

/**
 * 荣誉奖项Service业务层处理
 * 
 * @author ruoyi
 * @date 2025-04-01
 */
@Service
public class BoleResumeHonorServiceImpl implements IBoleResumeHonorService 
{
    @Autowired
    private BoleResumeHonorMapper boleResumeHonorMapper;

    /**
     * 查询荣誉奖项
     * 
     * @param id 荣誉奖项主键
     * @return 荣誉奖项
     */
    @Override
    public BoleResumeHonor selectBoleResumeHonorById(Long id)
    {
        return boleResumeHonorMapper.selectBoleResumeHonorById(id);
    }

    /**
     * 查询荣誉奖项列表
     * 
     * @param boleResumeHonor 荣誉奖项
     * @return 荣誉奖项
     */
    @Override
    public List<BoleResumeHonor> selectBoleResumeHonorList(BoleResumeHonor boleResumeHonor)
    {
        return boleResumeHonorMapper.selectBoleResumeHonorList(boleResumeHonor);
    }

    /**
     * 新增荣誉奖项
     * 
     * @param boleResumeHonor 荣誉奖项
     * @return 结果
     */
    @Override
    public int insertBoleResumeHonor(BoleResumeHonor boleResumeHonor)
    {
        return boleResumeHonorMapper.insertBoleResumeHonor(boleResumeHonor);
    }

    /**
     * 修改荣誉奖项
     * 
     * @param boleResumeHonor 荣誉奖项
     * @return 结果
     */
    @Override
    public int updateBoleResumeHonor(BoleResumeHonor boleResumeHonor)
    {
        return boleResumeHonorMapper.updateBoleResumeHonor(boleResumeHonor);
    }

    /**
     * 批量删除荣誉奖项
     * 
     * @param ids 需要删除的荣誉奖项主键
     * @return 结果
     */
    @Override
    public int deleteBoleResumeHonorByIds(Long[] ids)
    {
        return boleResumeHonorMapper.deleteBoleResumeHonorByIds(ids);
    }

    /**
     * 删除荣誉奖项信息
     * 
     * @param id 荣誉奖项主键
     * @return 结果
     */
    @Override
    public int deleteBoleResumeHonorById(Long id)
    {
        return boleResumeHonorMapper.deleteBoleResumeHonorById(id);
    }
}
